﻿#ifndef KNOWLEDGEBASEMAINWINDOW_H
#define KNOWLEDGEBASEMAINWINDOW_H

#include <QMainWindow>
#include <QModelIndex>

class Edit_html;
class QFileSystemModel;

namespace Ui {
    class KnowledgebaseMainWindow;
}

class KnowledgebaseMainWindow : public QMainWindow
{
    Q_OBJECT

public:
    explicit KnowledgebaseMainWindow(QWidget *parent = 0);
    ~KnowledgebaseMainWindow();
    Edit_html* htmlEditor;

public slots:
    void showArticlesListByDir(QString dir);
    void newArticle();

private:
    Ui::KnowledgebaseMainWindow *ui;
    QFileSystemModel *fileModel;
    void writeSettings();

private slots:
    void on_listViewArticles_clicked(QModelIndex index);
};

#endif // KNOWLEDGEBASEMAINWINDOW_H
